<template>
  <div>标题</div>
  <a-input :value="componentSetting.config.value.title" @change="handleChange" />
</template>
<script setup>
import { inject } from "vue";
const componentSetting = inject("componentSetting");

const handleChange = (e) => {
  const value = e.target.value;
  componentSetting.updateConfig({ title: value });
};
</script>
